import cn.pupil.design.PaymentProcessor;
import cn.pupil.design.impl.WeChatdProcessorExt;
import cn.pupil.design.impl.PayPalProcessor;
import cn.pupil.design.impl.WeChatProcessor;
import org.junit.Test;

/**
 * @Description: 测试验证
 * @Author: pupil
 * @Date: 2024/06/21 下午 8:13
 */
public class ApiTest {

    @Test
    public void test_WeChatProcessorExt(){
        PaymentProcessor processor = new WeChatdProcessorExt();
        processor.processPayment(150);
        processor.processPayment(90);
    }

    @Test
    public void test_WeChatProcessor(){
        PaymentProcessor processor = new WeChatProcessor();
        processor.processPayment(150);
    }

    @Test
    public void test_PayPalProcessor(){
        PaymentProcessor processor = new PayPalProcessor();
        processor.processPayment(150);
    }

}
